CFLAGS = -c -g -Wall
INCLUDE    = -I /usr/include/opencv
GL_LIBRARIES =  -lGL -lm -lGLU  -lcv -lcxcore -lhighgui -lSDL
GL_LIBRARIES_TEST =  -lGL -lm -lGLU  -lcv -lcxcore -lhighgui -lXmu -lXext -lXi -lX11 -lglut
GL_LIBDIR    = -L. -L/usr/X11R6/lib

CC = g++

job: TP3

TP3: tp3.o
	$(CC) $(GL_LIBDIR) tp3.o $(GL_LIBRARIES) -o $@
tp3.o : tp3.cpp
	$(CC) $(INCLUDE) $(CFLAGS) $<

clean:
	rm -rf *.o
	rm TP3
